package com.boge.study.test.design_pattern.observer;

import java.util.Observable;

/**
 * 可以是某个实体类
 * @author Administrator
 *
 */
public class ConcreteWeatherSubject extends Observable {
	
	private String content;
	
	public void setContent(String content) {
		this.content = content;
		//通知观察者
		this.setChanged();
		this.notifyObservers();
	}
	
	public String getContent() {
		return content;
		
	}

}
